const express = require('express')

const app = express()

// 1.导入路由模块
const userRouter = require('./6.router')
// 2.注册路由模块 app.use()注册全局中间件，添加统一的前缀
app.use('/api',userRouter)

app.listen(80, () => {
  console.log('express server created  running at http://127.0.0.1');
})